package cn.schoolwow.quickdao.test.module.business.operation.testcase;

import cn.schoolwow.quickdao.test.module.business.operation.flow.GenerateJavaSourceFileProcessFlow;
import cn.schoolwow.quickdao.test.module.business.operation.flow.SetSourceDAOFlow;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class GenerateJavaSourceFileTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new SetSourceDAOFlow())
                .next(new GenerateJavaSourceFileProcessFlow())
                .execute();
    }

    @Override
    public String name() {
        return "生成java实体类源文件测试用例";
    }
}
